<?

session_start();
REQUIRE ("../../include/protect/connect.php");             //Pour se connecter a la base.
REQUIRE ("../../include/fonction.php");             //Pour les fonction PHP
$PAGE="<SCRIPT TYPE=\"text/javascript\" SRC=\"../../include/common_script.js\"></SCRIPT>";





                $query="DELETE FROM sdsession WHERE session_user=$_USER_ID";
                $resultat=mysql_query($query);
                
                //Creation des variable de session
                $_USER_NAME=NULL;
                $_USER_ID=0;
                $_USER_OPT_DROIT=20/0/0;

                 $_USER_OPT_ARTICLE=0;
                //Enregistrement des variables de session
                SESSION_REGISTER("_USER_NAME");
                SESSION_REGISTER("_USER_ID");
                SESSION_REGISTER("_USER_DROIT");
                SESSION_REGISTER("_USER_OPT_ARTICLE");



MYSQL_CLOSE();

$PAGE.="<script language=\"javascript\">
window.open('../../index.php','_parent','');
</script>";
ECHO $PAGE;EXIT;


?>
